<?php

namespace app\api\controller;

use think\Db;

class Slide extends Common
{
    public function lists()
    {
        $data = Db::name('slides')
            ->where(['tid' => $this->params['tid']])
            ->order('des desc,id desc')
            ->cache(true)->select();

        return $this->pass($data);
    }
}
